package view.generaldesign;

import view.PicturePanel;
import java.awt.Color;
import java.awt.Font;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.Border;

/**
 * 
 * @author Sonny Sandberg
 */
public class DesignLayout 
{
    // Public Static Fonts
    public static final Font STANDARD = new Font("Lucida Sans Unicode", Font.PLAIN, 15);
    public static final Font PAGE_TITLE = new Font("Lucida Sans Unicode", Font.BOLD, 35);
    
    // Public Static Colors
    public static final Color T_FIELD_BG_COLOR = new Color(243, 243, 243);
    public static final Color T_FIELD_BORDER_RED = new Color(144, 25, 9);
    public static final Color MENU_TOP_BG_CHOSEN_RED = new Color(115, 20, 7);
    public static final Color MENU_LEFT_TEXT_CHOSEN_BLUE = new Color(102, 136, 213);
    
    // Public Static Border
    public static final Border T_FIELD_RED = BorderFactory.createLineBorder(DesignLayout.T_FIELD_BORDER_RED);
    
    // Public Static Fonts for PDF
    public static final Font PDF_BOLD_10 = new Font("Lucida Sans", Font.BOLD, 10);
    public static final Font PDF_PLAIN_10 = new Font("Lucida Sans", Font.PLAIN, 10);
    public static final Font PDF_PLAIN_11 = new Font("Lucida Sans", Font.PLAIN, 11);
    public static final Font PDF_PLAIN_12 = new Font("Lucida Sans", Font.PLAIN, 12);
    
    private JPanel designPanel;

    public DesignLayout()
    {
        designPanel = new JPanel(null);
        designPanel.setBounds(0, 0, 1100, 900);
        
        // Add Footer
        JPanel footer = new Footer().getFooterPanel();
        footer.setBounds(0, 843, 1100, 75);
        designPanel.add(footer);
        
        // Add logo
        JPanel logo = new PicturePanel(450, 139, "/resources/images/logo.png").getBackgroundPanel();
        logo.setBounds(70, 0, 450, 139);
        logo.setOpaque(false);
        designPanel.add(logo);
        
        // Add white overlay background
        JPanel whiteBackground = new PicturePanel(1200, 540, "/resources/images/page_bg.png").getBackgroundPanel();
        whiteBackground.setBounds(0, 305, 1100, 540);
        whiteBackground.setOpaque(true);
        designPanel.add(whiteBackground);        
        
        // Add bubbly overlay picture
        JPanel innerBG = new PicturePanel(960, 549, "/resources/images/intro_inner_bg.png").getBackgroundPanel();
        innerBG.setBounds((1100 - 960) / 2, 180, 960, 549);
        innerBG.setOpaque(false);
        designPanel.add(innerBG);
        
        // Add Background Picture
        designPanel.add(new PicturePanel(1100, 900, "/resources/images/bg.png").getBackgroundPanel());   
    }
    
    public JPanel getPanel()
    {
        return designPanel;
    }
}